﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Weazel.Willows.Model
{
	public class ConnectorCollection 
		: Dictionary<string,IConnector>
	{
		private Module parentModule;

		public new void Add(string name, IConnector connector)
		{
		// Console.WriteLine();
		// Console.WriteLine(" >> Adding connector '{0}' to module '{1}'", connector.Name, parentModule.Name);
		// Console.WriteLine();

			base.Add(name, connector);
		}

		public new bool Remove(string name)
		{
		//  Console.WriteLine();
		//  Console.WriteLine(" >> Removing connector '{0}' to module '{1}'", name, parentModule.Name);
		//  Console.WriteLine();

			return base.Remove(name);
		}

		public ConnectorCollection(Module parentModul)
		{
			this.parentModule = parentModul;			
		}
	}
}
